﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace Fares
{
    public partial class RegimuriFiscaleFrm : FrmRezumat
    {
        public RegimuriFiscaleFrm(ModuleClass mInfo)
            : base(mInfo)
        {
            InitializeComponent();
            workConnString = "ESRPConnectionString";
            ActiveControl = regimFiscalDGV;
        }

        private void RegimuriFiscaleFrm_Load(object sender, EventArgs e)
        {
            SqlConnection con = DeschideConexiune(workConnString);
            this.regimFiscalTableAdapter.Connection = con;
            this.regimFiscalTableAdapter.FillByAll(this.eSRPDataSet.RegimFiscal);
            InchideConexiune(con);
            AddBindingSource(regimFiscalBindingSource);
            this.listTableAdaptor.Add(regimFiscalTableAdapter.Adapter);

            HandleSalvare += Salvare;

        }
    }
}
